﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PositionList.ascx.cs" Inherits="Job.Web.userControls.Company.PositionList" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<table runat="server" visible="false" id="msgTab" width="80%" align="center">
    <tr>
        <td height="30px" align="center" runat="server" id="msgTd"></td>
    </tr>    
</table>

<asp:GridView ID="CompanyPosList" runat="server" CssClass="table_style1" Width="100%" 
    AutoGenerateColumns="False" onrowdatabound="CompanyPosList_RowDataBound" 
    onrowdeleting="CompanyPosList_RowDeleting" 
    onrowediting="CompanyPosList_RowEditing">
    <HeaderStyle CssClass="table_style1_th" />
    <SelectedRowStyle BackColor="#EAECEC"/>
    <AlternatingRowStyle BackColor="#F6F6F6" />
  
    <Columns>
        <asp:TemplateField HeaderText="职位名称">
            <ItemTemplate>
                <asp:HyperLink ID="hlPosition" runat="server"><%#DataBinder.Eval(Container.DataItem, "position_name")%></asp:HyperLink>
            </ItemTemplate>
            <ItemStyle CssClass="table_style1_td" HorizontalAlign="Left" Width="40%" />
        </asp:TemplateField>

        <asp:TemplateField HeaderText="点击数量">
            <ItemTemplate>
                <asp:Label ID="lbClick" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "click_num")%>'></asp:Label>
            </ItemTemplate>
            <ItemStyle CssClass="table_style1_td" HorizontalAlign="Left" Width="10%" />
        </asp:TemplateField>        
        
        <asp:TemplateField HeaderText="截止日期">
            <ItemTemplate>
                <asp:Label ID="lbEndDate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"end_date","{0:yyyy-MM-dd}")%>'></asp:Label>
            </ItemTemplate>
            <ItemStyle CssClass="table_style1_td" HorizontalAlign="center" Width="12%" />
        </asp:TemplateField>       

        <asp:TemplateField HeaderText="最后刷新">
            <ItemTemplate>
                <asp:Label ID="lbRefreshDate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"refresh_date","{0:yyyy-MM-dd HH:mm:ss}")%>'></asp:Label>
            </ItemTemplate>
            <ItemStyle CssClass="table_style1_td" HorizontalAlign="center" Width="20%" />
        </asp:TemplateField>               
        
        <asp:TemplateField HeaderText="状态">
            <ItemTemplate>
                <asp:CheckBox runat="server" ID="chbStatus" Enabled="false" Checked='<%#DataBinder.Eval(Container.DataItem, "cur_status")%>' />
            </ItemTemplate>
            <ItemStyle CssClass="table_style1_td" HorizontalAlign="center" Width="8%"/>
        </asp:TemplateField>         
  
   
        <asp:TemplateField InsertVisible="False" ShowHeader="False">
            <ItemTemplate>
                <asp:LinkButton ID="lbtEdit" runat="server" CausesValidation="False" 
                    CommandName="Edit" Text="编辑"></asp:LinkButton>
                &nbsp;&nbsp;
                <asp:LinkButton ID="lbtDelete" runat="server" CausesValidation="False" 
                    CommandName="Delete" Text="删除"></asp:LinkButton>
                <asp:Label ID="lbId" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "position_info_id")%>' Visible="false"></asp:Label>
            </ItemTemplate>
            <ItemStyle CssClass="table_style1_td" />
        </asp:TemplateField>
 
    </Columns>
</asp:GridView>


<webdiyer:AspNetPager ID="pagerButtom" runat="server" 
	ButtonImageNameExtension="n" ButtonImageExtension=".gif" 
        DisabledButtonImageNameExtension="g" CpiButtonImageNameExtension="r" 
		PagingButtonSpacing="10px" ButtonImageAlign="left" 
		onpagechanged="pagerButtom_PageChanged" CssClass="pagination" 
		CurrentPageButtonClass="current" PagingButtonClass="" 
		PagingButtonLayoutType="Span">
</webdiyer:AspNetPager>
<br />
<asp:Button ID="btNew" runat="server" onclick="btNew_Click" Text= " 新增招聘职位 " CssClass="btn_2k3"/>

<br />										  
<br />		